from django.urls import path
from .views import *

urlpatterns = [
    path('info', SystemInfo.as_view(), name='系统信息'),
    path('aas', SystemAdministrativeAreaDataView.as_view()),
    path('aas/<str:id>/districts', DistrictsDataView.as_view()),
    path('whole-search', WholeSearchView.as_view()),  # 整站搜索
    path('hot-search', ListHotSearchView.as_view()),
    path('app-service-protocol', GetAppServiceProtocolView.as_view(), name='获取APP服务协议'),
    path('products/<str:id>/make-gb-unique-bar-codes', MakeGbUniqueQrcodesView.as_view(), name='生成区块条形码'),
    path('products/<str:id>/batch-in-repo', BatchInRepoView.as_view(), name='批量入库'),
    path('products/<str:id>/init-store-unit', ProductLockStoreUnit.as_view(), name='初始化存储单元'),
    # path('products/<str:id>/set-avg-price', ProductSetAvgPrice.as_view(), name='设置产品平均价'),
    # path('repo/<str:id>/make-repo-store-unit-bar-codes', MakeRepoStoreUnitCodesView.as_view(), name='生成仓储码'),
    path('share/<str:id>', ShareView.as_view()),  # 分享
    path('share/pre-sale-products/<str:id>', SharePreSaleProductView.as_view(), name='分享预售产品详情'),
    path('share/users/<str:id>/tea-repo-statistics', ShareUserTeaRepoStatistics.as_view(), name='分享名片'),
]
